package com.api.user.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "message_read")
public class MessageRead implements Serializable {
    @Id
    @Column(name = "message_id")
    private Long messageId;

    @Column(name = "user_id")
    private Long userId;

    /**
     *  1 已读 2 未读 3 删除
     */
    private Integer state;

    /**
     * 阅读时间
     */
    @Column(name = "read_time")
    private Long readTime;

    /**
     * 收藏
     */
    private Boolean favorites;

    private static final long serialVersionUID = 1L;

    /**
     * @return message_id
     */
    public Long getMessageId() {
        return messageId;
    }

    /**
     * @param messageId
     */
    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取 1 已读 2 未读 3 删除
     *
     * @return state -  1 已读 2 未读 3 删除
     */
    public Integer getState() {
        return state;
    }

    /**
     * 设置 1 已读 2 未读 3 删除
     *
     * @param state  1 已读 2 未读 3 删除
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 获取阅读时间
     *
     * @return read_time - 阅读时间
     */
    public Long getReadTime() {
        return readTime;
    }

    /**
     * 设置阅读时间
     *
     * @param readTime 阅读时间
     */
    public void setReadTime(Long readTime) {
        this.readTime = readTime;
    }

    /**
     * 获取收藏
     *
     * @return favorites - 收藏
     */
    public Boolean getFavorites() {
        return favorites;
    }

    /**
     * 设置收藏
     *
     * @param favorites 收藏
     */
    public void setFavorites(Boolean favorites) {
        this.favorites = favorites;
    }
}